import numpy as np

import cv2

img = np.zeros((300,400,3),np.uint8)
img1 = np.ones((300,400,3),np.uint8)
#输出（高，宽）100行500列，对角线为1，其余都为0
img2 = np.eye(100,500)

img4 = cv2.imread("images/a.jpg")
#改变其颜色值
img3 = 120 * img
#色彩空间转换
img5 = cv2.cvtColor(img4, cv2.COLOR_BGR2HSV)
#灰度空间
img6=cv2.cvtColor(img4, cv2.COLOR_BGR2GRAY)

##
cv2.imshow("img", img3)
cv2.imshow("img1", img)
print(img.size)
print(img3.size)




cv2.waitKey(0)

cv2.destroyAllWindows()

print(img.shape)
